package org.albertsanso.yoigo.shopchat;

import org.albertsanso.yoigo.shopchat.co.ShopChatComponent;


public class YoigoShopChatContext {

	private static YoigoShopChatActivity mainActivity;

	public static YoigoShopChatActivity getMainActivity() {
		return mainActivity;
	}

	public static void setMainActivity(YoigoShopChatActivity mainActivity) {
		YoigoShopChatContext.mainActivity = mainActivity;
	}

	public static ShopChatComponent getShopChatComponent() {
		
		ShopChatComponent shopChatComponent = null;

		if (YoigoShopChatContext.mainActivity != null) {
			shopChatComponent = YoigoShopChatContext.mainActivity.getShopChatComponent();
		}
		 
		 return shopChatComponent;
	}
}
